BaseSubsystem.DebugMessage method
Sends the KINGSTAR log messages to KINGSTAR Analysis Console.
Namespace: IntervalZero.KINGSTAR.Base.Class
Assembly: IntervalZero.KINGSTAR.Base.Class (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0
Syntax
void DebugMessage(
int Category,
KsLogSeverity Severity,
string Message
)
Sub DebugMessage(
Category As Integer,
Severity As KsLogSeverity,
Message As String
)
Parameters
Category
Type: int
The ID of a log. It is user-defined. A string can be associated with each Category using the SetCategoryName method. The ID doesn't have to start from zero or in sequence.
Severity
Type: KsLogSeverity
The severity level of a log.
Message
Type: string
A message that describes the log data. The maximum length is 64 characters.
Remarks
- Category and Severity can be used to filter the log you want to see. The filter is done in KINGSTAR Analysis Console.
- The Message string uses UTF-16 encoding.
Usable EtherCAT states
ecatOffline, ecatInit, ecatBoot, ecatPreOP, ecatSafeOP, ecatOP
See also